package org.swim.local.manager;

import javax.ejb.Local;

import net.sf.json.JSONObject;

import org.swim.core.entities.Ability;
import org.swim.remote.exceptions.AbilityException;
import org.swim.remote.manager.AbilityManagerRemote;

@Local
public interface AbilityManagerLocal extends AbilityManagerRemote {

	 /**
	  * {
	  * 	ability: {name:"..."}
	  * } 
	  * @param object
	  * @return
	  * @throws AbilityException
	  */
	public abstract Ability checkAbility(JSONObject object)
			throws AbilityException;

	 /**
	  * "..."
	  * 
	  * @param abilityName
	  * @return
	  * @throws AbilityException
	  */
	public abstract Integer getIdAbility(String abilityName)
			throws AbilityException;

}